﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.MaoKe01.Application
{
    public class MachineModel: BindableBase
    {
        
        private bool autoRunFlag;
        /// <summary>
        /// 自动运行标记
        /// </summary>
        public bool AutoRunFlag { get { return autoRunFlag; } set { autoRunFlag = value; RaisePropertyChanged(); } }

        private bool manualTriggerFlag; 
        /// <summary>
        /// 手动出发标记
        /// </summary>
        public bool ManualTriggerFlag { get { return manualTriggerFlag; } set { manualTriggerFlag = value; RaisePropertyChanged(); } }

        private bool isMachineTrigger;
        /// <summary>
        /// 是否机器出发，如果为flase，则接受手动触发，如果True，则设备触发
        /// </summary>
        public bool IsMachineTrigger { get { return isMachineTrigger; } set { isMachineTrigger = value; RaisePropertyChanged(); } }

        private bool cameraReady;
        /// <summary>
        /// 相机准备就绪
        /// </summary>
        public bool CameraReady { get { return cameraReady; } set { cameraReady = value; RaisePropertyChanged();   } }

        private bool inspectUnitReady;
        /// <summary>
        /// 检测单元准备就绪
        /// </summary>
        public bool InspectUnitReady { get { return inspectUnitReady; } set { inspectUnitReady = value; RaisePropertyChanged(); } }

        private bool inspectPass; 
        /// <summary>
        /// 检测结果是否合格
        /// </summary>
        public bool InspectPass { get { return inspectPass; } set { inspectPass = value; RaisePropertyChanged(); } }
        private string defectNameSummary; public string DefectNameSummary { get { return defectNameSummary; } set { defectNameSummary = value; RaisePropertyChanged(); } }
        private string sourcePhotoPath; public string SourcePhotoPath { get { return sourcePhotoPath; } set { sourcePhotoPath = value; RaisePropertyChanged(); } }
        private string inspectImgPath; public string InspectImgPath { get { return inspectImgPath; } set { inspectImgPath = value; RaisePropertyChanged(); } }
        private string defectImgPath; public string DefectImgPath { get { return defectImgPath; } set { defectImgPath = value; RaisePropertyChanged(); } }
    }
}
